﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace Cn.Cellula.Website.Test {
    public partial class _zss : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {
            if (Request.QueryString["t"] == "html")
                LoadHTML();
            else
                LoadJson();
        }

        private void LoadHTML() {
            StringBuilder sb = new StringBuilder();
            sb.Append("<table border='1'>");
            sb.Append("<tr>");
            sb.Append("<td></td>");
            for (int i = 0; i < 80; i++) {
                sb.Append("<td>" + i + "</td>");
            }
            sb.Append("</tr>");
            for (int i = 0; i < 500; i++) {
                sb.Append("<tr>");
                sb.Append("<td>" + i + "</td>");
                for (int j = 0; j < 80; j++) {
                    sb.Append("<td>我是数据啊</td>");
                }
                sb.Append("</tr>");
            }
            sb.Append("</table>");
            Response.Clear();
            Response.Write(sb.ToString());
        }
        private void LoadJson() {
            StringBuilder sb = new StringBuilder();
            sb.Append("[");
            for (int i = 0; i < 500; i++) {
                if (i > 0)
                    sb.Append(",");
                sb.Append("[");
                sb.Append("" + i + "");
                for (int j = 0; j < 80; j++) {
                    sb.Append(",\"我是数据啊\"");
                }
                sb.Append("]");
            }
            sb.Append("]");
            Response.Clear();
            Response.Write(sb.ToString());
        }
    }
}